Lua/Client/Character/Functions/GetBoneAngle
From JC2-MP Documentation
Returns | Angle |
---|---|
Prototype | Character:GetBoneAngle(string) |
Description | Returns the angle of the bone specified. |
Example
The following draws a line from the player's head sticking outward:
function RenderHeadLine()
local angle = LocalPlayer:GetBoneAngle("ragdoll_Head")
local position1 = LocalPlayer:GetBonePosition("ragdoll_Head")
local position2 = position1 + angle * Vector3.Forward
Render:DrawLine(position1, position2, Color.LawnGreen)
end
Events:Subscribe("Render", RenderHeadLine)
Bones reference
